package com.netty.tcp.ew.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 协议对象 base_protocl
 * 
 * @author Mr.wu
 * @date 2023-10-09
 */
public class BaseProtocl
{
    private static final long serialVersionUID = 1L;

    /** 协议ID */
    private Integer protoclId;

    /** 协议产品 */

    private String protoclName;

    /**  */

    private Integer pid;

    /** 子部门 */
    private List<BaseProtocl> children = new ArrayList<BaseProtocl>();

    /** 数据归属 */
    private Integer companyId;

    public void setProtoclId(Integer protoclId) 
    {
        this.protoclId = protoclId;
    }

    public Integer getProtoclId() 
    {
        return protoclId;
    }
    public void setProtoclName(String protoclName) 
    {
        this.protoclName = protoclName;
    }

    public String getProtoclName() 
    {
        return protoclName;
    }
    public void setPid(Integer pid) 
    {
        this.pid = pid;
    }

    public Integer getPid() 
    {
        return pid;
    }

    public List<BaseProtocl> getChildren()
    {
        return children;
    }



    public Integer getCompanyId()
    {
        return companyId;
    }

    public void setCompanyId(Integer companyId){
        this.companyId = companyId;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("protoclId", getProtoclId())
            .append("protoclName", getProtoclName())
            .append("pid", getPid())
            .toString();
    }
}
